package com.wx.activitys.drp.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.wx.activitys.drp.mapper.BCardMapper;
import com.wx.activitys.drp.model.BCard;
import com.wx.activitys.drp.service.BCardService;
@Service("/bCardService")
public class BCardServiceImpl implements BCardService {
   @Autowired
   BCardMapper bCardMapper;
   
	@Override
	public int insertCard(BCard bCard) {
		return bCardMapper.insertCard(bCard);
	}

	@Override
	public List<BCard> listCardByOpenid(String openid) {
		return bCardMapper.listCardByOpenid(openid);
	}

	@Override
	public int deleteBycardId(Map<String, Object> map) {
		return bCardMapper.deleteBycardId(map);
	}

	@Override
	public BCard listCardByCardId(String cardId) {
		return bCardMapper.listCardByCardId(cardId);
	}

}
